public class Student extends Person{
    public Student(String name, int age){
        super(name, age);

        System.out.println("Student:构造");
    }
    {
        System.out.println("Student:实例");
    }
    static {
        System.out.println("Student:静态");
    }

    public static void main(String[] args) {
        Student student1 = new Student("张三",18);
        System.out.println("---------------");
        Student student2 = new Student("李四",22);


    }
}

//顺序是父静-子静-父实-父构-子实-子构。且静态方法只执行一次


